package com.ssy.lingxi.logistics.api.fallback;

import com.ssy.lingxi.common.response.ResponseCode;
import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.logistics.api.dto.request.CommonIdsRequest;
import com.ssy.lingxi.logistics.api.dto.response.ShipperAddressDetailResponse;
import com.ssy.lingxi.logistics.api.feign.ShipperAddressControllerFeign;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class ShipperAddressFeignFallback implements ShipperAddressControllerFeign {

    @Override
    public Wrapper<ShipperAddressDetailResponse> getShipperAddress(Long id) {
        return Wrapper.fail(ResponseCode.SERVICE_LOGISTICS_ERROR);
    }

    @Override
    public Wrapper<List<ShipperAddressDetailResponse>> listShipperAddress(CommonIdsRequest idsRequest) {
        return Wrapper.fail(ResponseCode.SERVICE_LOGISTICS_ERROR);
    }
}
